﻿using psafth.RCTiming.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace psafth.RCTiming.Main.Pages.Dialogs
{
    /// <summary>
    /// Interaction logic for HeatCorrectionDialog.xaml
    /// </summary>
    public partial class HeatCorrectionDialog : Window
    {
        private ObservableCollectionExt<HeatCompetitor> _drivers;

        public HeatCorrectionDialog(RacePage p)
        {
            InitializeComponent();

            this._drivers = p.Drivers ?? new ObservableCollectionExt<HeatCompetitor>();

            RaceGrid.DataContext = _drivers;
        }
    }
}
